<?php
class product_detail_controller extends CI_Controller{
	function __construct(){
		parent::__construct();
	}

	public	function index(){
		$data['site']='product-detail';
                   $this->load->model('category_model');
        $data['categories']=$this->category_model->getAllCategories();
		$this->load->view('template',$data);
	}
	public	function detail(){
               $this->load->model('category_model');
        $data['categories']=$this->category_model->getAllCategories();
		$data['site']='site/product-detail';
		$this->load->view('template',$data);
	}
}
